<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>组件一 局部组件</title>
</head>
<body>
<div id="app">

    <ziujianming></ziujianming>

</div>
</body>
<script src="./node_modules/vue/dist/vue.js"></script>
<script>
    const counter = {
        template:'<button v-on:click="count++">你点了我 {{ count }} 次，我记住了.</button>',
        data(){
            return {
                count:0
            }
        }
    };

    var app =new Vue({
        el:"#app",
        data:{

        },components:{
            ziujianming:counter // 将定义的对象注册为组件
        }


    });
</script>
</html>